/**
 * Generate time : 2011-08-16 15:43:28
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ca.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * VZMCA4200
 * 
 */
public class VZMCA4200 extends DaoEPBase {

	private String fdKeyId = " ";
	private String fdProblemTypeId = " ";
	private String fdTime = " ";
	private String fdPlace = " ";
	private String fdProblemdesc = " ";

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemTypeId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTime");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlace");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdProblemdesc");
		eiColumn.setFieldLength(800);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public VZMCA4200() {
		initMetaData();
	}

	/**
	 * get the fdKeyId
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdProblemtypeid
	 * 
	 * @return the fdProblemtypeid
	 */
	public String getFdProblemTypeId() {
		return this.fdProblemTypeId;
	}

	/**
	 * set the fdProblemtypeid
	 */
	public void setFdProblemTypeId(String fdProblemTypeId) {
		this.fdProblemTypeId = fdProblemTypeId;
	}

	/**
	 * get the fdTime
	 * 
	 * @return the fdTime
	 */
	public String getFdTime() {
		return this.fdTime;
	}

	/**
	 * set the fdTime
	 */
	public void setFdTime(String fdTime) {
		this.fdTime = fdTime;
	}

	/**
	 * get the fdPlace
	 * 
	 * @return the fdPlace
	 */
	public String getFdPlace() {
		return this.fdPlace;
	}

	/**
	 * set the fdPlace
	 */
	public void setFdPlace(String fdPlace) {
		this.fdPlace = fdPlace;
	}

	/**
	 * get the fdProblemdesc
	 * 
	 * @return the fdProblemdesc
	 */
	public String getFdProblemdesc() {
		return this.fdProblemdesc;
	}

	/**
	 * set the fdProblemdesc
	 */
	public void setFdProblemdesc(String fdProblemdesc) {
		this.fdProblemdesc = fdProblemdesc;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdProblemTypeId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemTypeId")), fdProblemTypeId));
		setFdTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTime")), fdTime));
		setFdPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlace")), fdPlace));
		setFdProblemdesc(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemdesc")), fdProblemdesc));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdProblemTypeId", StringUtils.toString(fdProblemTypeId, eiMetadata.getMeta("fdProblemTypeId")));
		map.put("fdTime", StringUtils.toString(fdTime, eiMetadata.getMeta("fdTime")));
		map.put("fdPlace", StringUtils.toString(fdPlace, eiMetadata.getMeta("fdPlace")));
		map.put("fdProblemdesc", StringUtils.toString(fdProblemdesc, eiMetadata.getMeta("fdProblemdesc")));

		return map;

	}
}